Optimal. Leaf size=110 \[ \frac {3 \tan ^{-1}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {a}}\right )}{8 \sqrt {a} d (a+b)^{5/2}}-\frac {3 \tan (c+d x)}{8 d (a+b)^2 \left ((a+b) \tan ^2(c+d x)+a\right )}-\frac {\tan ^3(c+d x)}{4 d (a+b) \left ((a+b) \tan ^2(c+d x)+a\right )^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 110, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3187, 288, 205} \[ -\frac {\tan ^3(c+d x)}{4 d (a+b) \left ((a+b) \tan ^2(c+d x)+a\right )^2}-\frac {3 \tan (c+d x)}{8 d (a+b)^2 \left ((a+b) \tan ^2(c+d x)+a\right )}+\frac {3 \tan ^{-1}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {a}}\right )}{8 \sqrt {a} d (a+b)^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 288
Rule 3187
Rubi steps
\begin {align*} \int \frac {\sin ^4(c+d x)}{\left (a+b \sin ^2(c+d x)\right )^3} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {x^4}{\left (a+(a+b) x^2\right )^3} \, dx,x,\tan (c+d x)\right )}{d}\\ &=-\frac {\tan ^3(c+d x)}{4 (a+b) d \left (a+(a+b) \tan ^2(c+d x)\right )^2}+\frac {3 \operatorname {Subst}\left (\int \frac {x^2}{\left (a+(a+b) x^2\right )^2} \, dx,x,\tan (c+d x)\right )}{4 (a+b) d}\\ &=-\frac {\tan ^3(c+d x)}{4 (a+b) d \left (a+(a+b) \tan ^2(c+d x)\right )^2}-\frac {3 \tan (c+d x)}{8 (a+b)^2 d \left (a+(a+b) \tan ^2(c+d x)\right )}+\frac {3 \operatorname {Subst}\left (\int \frac {1}{a+(a+b) x^2} \, dx,x,\tan (c+d x)\right )}{8 (a+b)^2 d}\\ &=\frac {3 \tan ^{-1}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {a}}\right )}{8 \sqrt {a} (a+b)^{5/2} d}-\frac {\tan ^3(c+d x)}{4 (a+b) d \left (a+(a+b) \tan ^2(c+d x)\right )^2}-\frac {3 \tan (c+d x)}{8 (a+b)^2 d \left (a+(a+b) \tan ^2(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.32, size = 97, normalized size = 0.88 \[ \frac {\frac {3 \tan ^{-1}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {a}}\right )}{\sqrt {a} (a+b)^{5/2}}+\frac {\sin (2 (c+d x)) ((2 a+5 b) \cos (2 (c+d x))-8 a-5 b)}{(a+b)^2 (2 a-b \cos (2 (c+d x))+b)^2}}{8 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.49, size = 683, normalized size = 6.21 \[ \left [-\frac {3 \, {\left (b^{2} \cos \left (d x + c\right )^{4} - 2 \, {\left (a b + b^{2}\right )} \cos \left (d x + c\right )^{2} + a^{2} + 2 \, a b + b^{2}\right )} \sqrt {-a^{2} - a b} \log \left (\frac {{\left (8 \, a^{2} + 8 \, a b + b^{2}\right )} \cos \left (d x + c\right )^{4} - 2 \, {\left (4 \, a^{2} + 5 \, a b + b^{2}\right )} \cos \left (d x + c\right )^{2} + 4 \, {\left ({\left (2 \, a + b\right )} \cos \left (d x + c\right )^{3} - {\left (a + b\right )} \cos \left (d x + c\right )\right )} \sqrt {-a^{2} - a b} \sin \left (d x + c\right ) + a^{2} + 2 \, a b + b^{2}}{b^{2} \cos \left (d x + c\right )^{4} - 2 \, {\left (a b + b^{2}\right )} \cos \left (d x + c\right )^{2} + a^{2} + 2 \, a b + b^{2}}\right ) - 4 \, {\left ({\left (2 \, a^{3} + 7 \, a^{2} b + 5 \, a b^{2}\right )} \cos \left (d x + c\right )^{3} - 5 \, {\left (a^{3} + 2 \, a^{2} b + a b^{2}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{32 \, {\left ({\left (a^{4} b^{2} + 3 \, a^{3} b^{3} + 3 \, a^{2} b^{4} + a b^{5}\right )} d \cos \left (d x + c\right )^{4} - 2 \, {\left (a^{5} b + 4 \, a^{4} b^{2} + 6 \, a^{3} b^{3} + 4 \, a^{2} b^{4} + a b^{5}\right )} d \cos \left (d x + c\right )^{2} + {\left (a^{6} + 5 \, a^{5} b + 10 \, a^{4} b^{2} + 10 \, a^{3} b^{3} + 5 \, a^{2} b^{4} + a b^{5}\right )} d\right )}}, -\frac {3 \, {\left (b^{2} \cos \left (d x + c\right )^{4} - 2 \, {\left (a b + b^{2}\right )} \cos \left (d x + c\right )^{2} + a^{2} + 2 \, a b + b^{2}\right )} \sqrt {a^{2} + a b} \arctan \left (\frac {{\left (2 \, a + b\right )} \cos \left (d x + c\right )^{2} - a - b}{2 \, \sqrt {a^{2} + a b} \cos \left (d x + c\right ) \sin \left (d x + c\right )}\right ) - 2 \, {\left ({\left (2 \, a^{3} + 7 \, a^{2} b + 5 \, a b^{2}\right )} \cos \left (d x + c\right )^{3} - 5 \, {\left (a^{3} + 2 \, a^{2} b + a b^{2}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{16 \, {\left ({\left (a^{4} b^{2} + 3 \, a^{3} b^{3} + 3 \, a^{2} b^{4} + a b^{5}\right )} d \cos \left (d x + c\right )^{4} - 2 \, {\left (a^{5} b + 4 \, a^{4} b^{2} + 6 \, a^{3} b^{3} + 4 \, a^{2} b^{4} + a b^{5}\right )} d \cos \left (d x + c\right )^{2} + {\left (a^{6} + 5 \, a^{5} b + 10 \, a^{4} b^{2} + 10 \, a^{3} b^{3} + 5 \, a^{2} b^{4} + a b^{5}\right )} d\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.20, size = 152, normalized size = 1.38 \[ \frac {\frac {3 \, {\left (\pi \left \lfloor \frac {d x + c}{\pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (2 \, a + 2 \, b\right ) + \arctan \left (\frac {a \tan \left (d x + c\right ) + b \tan \left (d x + c\right )}{\sqrt {a^{2} + a b}}\right )\right )}}{{\left (a^{2} + 2 \, a b + b^{2}\right )} \sqrt {a^{2} + a b}} - \frac {5 \, a \tan \left (d x + c\right )^{3} + 5 \, b \tan \left (d x + c\right )^{3} + 3 \, a \tan \left (d x + c\right )}{{\left (a \tan \left (d x + c\right )^{2} + b \tan \left (d x + c\right )^{2} + a\right )}^{2} {\left (a^{2} + 2 \, a b + b^{2}\right )}}}{8 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.26, size = 136, normalized size = 1.24 \[ -\frac {5 \left (\tan ^{3}\left (d x +c \right )\right )}{8 d \left (a \left (\tan ^{2}\left (d x +c \right )\right )+\left (\tan ^{2}\left (d x +c \right )\right ) b +a \right )^{2} \left (a +b \right )}-\frac {3 a \tan \left (d x +c \right )}{8 d \left (a \left (\tan ^{2}\left (d x +c \right )\right )+\left (\tan ^{2}\left (d x +c \right )\right ) b +a \right )^{2} \left (a^{2}+2 a b +b^{2}\right )}+\frac {3 \arctan \left (\frac {\left (a +b \right ) \tan \left (d x +c \right )}{\sqrt {a \left (a +b \right )}}\right )}{8 d \left (a^{2}+2 a b +b^{2}\right ) \sqrt {a \left (a +b \right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.51, size = 158, normalized size = 1.44 \[ -\frac {\frac {5 \, {\left (a + b\right )} \tan \left (d x + c\right )^{3} + 3 \, a \tan \left (d x + c\right )}{{\left (a^{4} + 4 \, a^{3} b + 6 \, a^{2} b^{2} + 4 \, a b^{3} + b^{4}\right )} \tan \left (d x + c\right )^{4} + a^{4} + 2 \, a^{3} b + a^{2} b^{2} + 2 \, {\left (a^{4} + 3 \, a^{3} b + 3 \, a^{2} b^{2} + a b^{3}\right )} \tan \left (d x + c\right )^{2}} - \frac {3 \, \arctan \left (\frac {{\left (a + b\right )} \tan \left (d x + c\right )}{\sqrt {{\left (a + b\right )} a}}\right )}{\sqrt {{\left (a + b\right )} a} {\left (a^{2} + 2 \, a b + b^{2}\right )}}}{8 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 13.69, size = 149, normalized size = 1.35 \[ \frac {3\,\mathrm {atan}\left (\frac {3\,\mathrm {tan}\left (c+d\,x\right )\,\left (2\,a+2\,b\right )\,\left (\frac {8\,a^2}{3}+\frac {16\,a\,b}{3}+\frac {8\,b^2}{3}\right )}{16\,\sqrt {a}\,{\left (a+b\right )}^{5/2}}\right )}{8\,\sqrt {a}\,d\,{\left (a+b\right )}^{5/2}}-\frac {\frac {5\,{\mathrm {tan}\left (c+d\,x\right )}^3}{8\,\left (a+b\right )}+\frac {3\,a\,\mathrm {tan}\left (c+d\,x\right )}{8\,\left (a^2+2\,a\,b+b^2\right )}}{d\,\left ({\mathrm {tan}\left (c+d\,x\right )}^4\,\left (a^2+2\,a\,b+b^2\right )+a^2+{\mathrm {tan}\left (c+d\,x\right )}^2\,\left (2\,a^2+2\,b\,a\right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________